package com.link.base.ext.emp.service;

import com.link.base.ext.emp.model.EmpPosition;
import com.link.base.ext.emp.model.ExtEmployee;
import com.link.core.basic.service.BasicService;

import java.util.List;

/**
 * 职位员工中间对象-
 *
 * @author 刘启鑫
 * @date 2020/09/03 16:51
 */
public interface EmpPositionService extends BasicService<EmpPosition> {

    /**
     * 根据员工ID删除员工职位中间表数据
     *
     * @author 刘启鑫
     * @date 2020/9/3 17:06
     */
    void deleteEmpPostnByEmpId(EmpPosition empPosition);

    /**
     * 获取员工职位中间表数据
     *
     * @author 刘启鑫
     * @date 2020/9/3 17:11
     */
    List<EmpPosition> getInsertEmpPostns(ExtEmployee employee, StringBuilder warn, String[] postnCodes) throws Exception;

    /**
     * 删除对应员工的中间数据，并批量新建数据
     *
     * @author 刘启鑫
     * @date 2020/9/10 11:51
     */
    void deleteAndInsertBatch(EmpPosition empPosition, List<EmpPosition> empPositionList);

}
